using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;

namespace <Application>.<Business>
{
    [Table("<TableU>", Schema="<OwnerU>")]
    public class <OwnerU>_<TableU>
    {
    <If Loop>
      <IsPKey>
        [Key]
        [Column(Order = <iVarA>)]
        <iVarA=+[1]>
      <IsNullable>
      <And>
      <IsNull>
        public <VBType>? <FieldU> { get; set; }
      <IsNullable>
      <And>
      <IsNotNull>
        public <VBType> <FieldU> { get; set; }
      <IsNotNullable>
        public <VBType> <FieldU> { get; set; }
    </If Loop>
    }

<If Loop>
      <IsFKeyCount>
    public class <OwnerU>_<TableU>Joined
    {
      	<ExitLoop>
</If Loop>
<If Loop>
      <IsFKeyCount>
      <And>
      <IsPKey>
        [Key]
      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNullable>
      <And>
      <IsNull>
        public <VBType>? <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNullable>
      <And>
      <IsNotNull>
        public <VBType> <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNotNullable>
        public <VBType> <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNullable>
      <And>
      <IsNull>
        public <VBType>? <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNullable>
      <And>
      <IsNotNull>
        public <VBType> <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNotNullable>
        public <VBType> <FieldU> { get; set; }
      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsRDisplayField>
        public String <FieldU> { get; set; }
</If Loop>
<If Loop>
      <IsFKeyCount>
    }
      	<ExitLoop>
</If Loop>
}
